html, body {
    background: #413f41;
    background: -moz-linear-gradient(top, #413f41 0%, #7c7b7b 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #413f41), color-stop(100%, #7c7b7b));
    background: -webkit-linear-gradient(top, #413f41 0%, #7c7b7b 100%);
    background: -o-linear-gradient(top, #413f41 0%, #7c7b7b 100%);
    background: -ms-linear-gradient(top, #413f41 0%, #7c7b7b 100%);
    background: linear-gradient(top, #413f41 0%, #7c7b7b 100%);
}

#task_name {
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

#task_description {
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

.task_select_container {
    float: right;
    top: -80px;
    right: 20px;
    position: relative;
}

div#main_frame {
    position: fixed;
    width: 800px;
    height: 600px;
    top: 50%;
    left: 50%;
    margin-top: -300px;
    margin-left: -400px;
    padding: 20px;

    background: rgb(82, 96, 104);
    border: 1px solid rgb(2, 2, 3);
    box-shadow: 0pt 2px 5px rgba(44, 33, 63, 0.68), 0px 0px 8px 5px rgba(22, 193, 10, 0.40) inset;
    border-radius: 8px;
}

table.tape_container {
    margin-top: 20px;
    font-size: 22px;
    background-color: #8f938c;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border-collapse: collapse;
    color: #444;
    text-shadow: 1px 1px 1px #fff;
    font-weight: bold;
    border-bottom: 3px solid #444;
    border-top: 3px solid #444;
}

table#current_state {
    margin-top: 0px;
}

table#final_state {
    margin-top: 30px;
}

table.tape_container td {
    text-align: center;
    min-width: 36px;
    height: 35px;
    border: 2px solid #bfc1b5;
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0.39, rgb(214, 214, 214)), color-stop(0.7, rgb(224, 224, 224)));
    background: -moz-linear-gradient(center bottom, rgb(214, 214, 214) 39%, rgb(224, 224, 224) 70%);
    position: relative;
}

table.tape_container tr {

}

table#head_row {
    margin-top: 20px;
    margin-left: 20px;
}

table#head_row td {
    width: 36px;
    height: 20px;
}

div.head_into {
    width: 0px;
    height: 0px;
    margin-left: 4px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #19bd09;
    font-size: 0px;
    line-height: 0px;
    position: absolute;
    top: -18px;

}

table.tape_container td:last-child {
    border-right: none;
}

table.tape_container td:first-child {
    border-left: none;
}

button {
    width: 150px;
    height: 30px;
    border: 1px solid #0d8926;
    background: #404040;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0px 0px 3px #000;
    -webkit-box-shadow: 0px 0px 3px #000;
    box-shadow: 0px 0px 3px #000;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-family: 'NotethisRegular', Verdana, Arial, sans-serif;
    font-size: 18px;
    padding-top: 1px;
}

button:hover, button:focus {
    background: -moz-radial-gradient(bottom, #656565, #404040 80%);
    background: -webkit-gradient(radial, center bottom, 0, center 230, 250, from(#656565), to(#404040));
}

button:active {
    -moz-box-shadow: 0px 0px 2px #000;
    -webkit-box-shadow: 0px 0px 2px #000;
    box-shadow: 0px 0px 2px #000;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 1);
}

button:disabled {
    text-shadow: 0px 0px 0px;
    background: #616161;
    color: #dcdcdc;
}

div.div_button {
    margin-top: 6px;
}

div.buttons_container {
    margin-left: 20px;
    margin-top: 20px;
    float: left;
}

#div_rules_table {
    width: 590px;
    height: 250px;
    top: 200px;
    margin-top: 20px;
    float: left;
    overflow: auto;
}

.remove_state {
    width: 25px;
    height: 25px;
    border:1px solid #0b0919;
    -moz-border-radius:25px;
    -webkit-border-radius:25px;
    border-radius:25px;
    font-weight:bold;
    background:#FF000B;
}

table.rules_table, table.rules_table td {
}


button.remove_state:hover, button:focus {
    background: -moz-radial-gradient(bottom, #FF000B, #f9413e 80%);
    background: -webkit-gradient(radial, center bottom, 0, center 230, 250, from(#FF000B), to(#f9413e));
}

table.rules_table{
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4em;
    font-style: normal;
    border-collapse:separate;

}
table.rules_table td{
    min-height: 25px;
}

table.rules_table thead td{
    background: transparent;
    border: none;
}

table.rules_table thead td.state_name, table.rules_table tbody td:first-child{
    color:#444;
    text-shadow: 1px 1px 1px #fff;
    border:1px solid #bcb8b3;
    border-bottom:3px solid #c9c8d9;
    background-color: #bfbec2;
    background:-webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.02, rgb(174, 176, 178)),
        color-stop(0.51, rgb(195, 194, 194)),
        color-stop(0.87, rgb(217, 217, 208))
    );
    background: -moz-linear-gradient(
        center bottom,
        rgb(174, 176, 178) 2%,
        rgb(195, 194, 194) 51%,
        rgb(217, 217, 208) 87%
    );
    -webkit-border-top-left-radius:5px;
    -webkit-border-top-right-radius:5px;
    -moz-border-radius:5px 5px 0px 0px;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
}

table.rules_table td {
    text-align:center;
    color: #444;
    text-shadow: 1px 1px 1px #fff;
    font-weight: bold;
    background-color: #eee9f3;
    border: 2px solid #E7EFE0;
    -moz-border-radius:2px;
    -webkit-border-radius:2px;
    border-radius:2px;
    text-shadow:1px 1px 1px #fff;
}

#dialog_wrapper {
    position: absolute;
}

div.rules_table_cell{
    height: 15px;
    float: left;
}

div.scroll{
    overflow-x: scroll;
    width: 100%;
}

#current_state_wrapper {
    height: 70px;
    position: relative;
}

#current_state {
    position: absolute;
    bottom: 0;
}

#final_state_wrapper {
    position: relative;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(216, 216, 216, 0.88);
    border-radius: 3px;
    background-color: #808283;
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 8px rgb(37, 216, 12);
}

::-webkit-scrollbar-corner {
    background-color: #526068;
}